<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>首页</title>
<meta name="decorator" content="cms_default_${site.theme}" />
<meta name="description" content="JeeSite ${site.description}" />
<meta name="keywords" content="JeeSite ${site.keywords}" />
</head>
<body>
	<div class="hero-unit" style="padding-bottom: 35px; margin: 10px 0;">
		<c:set var="article" value="${fnc:getArticle('2')}" />
		<h1>${fns:abbr(article.title,28)}</h1>
		<p></p>
		<p>${fns:abbr(fns:replaceHtml(article.articleData.content),260)}</p>
		<p>
			<a href="${article.url}" class="btn btn-primary btn-large">&nbsp;&nbsp;&nbsp;查看详情
				&raquo;&nbsp;&nbsp;&nbsp;</a>
		</p>
	</div>
	<div class="row">
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-10${urlSuffix}"
					class="pull-right">更多&gt;&gt;</a></small>编程语言
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 10, 8, '')}"
					var="article">
					<li><span class="pull-right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-20${urlSuffix}"
					class="pull-right">更多&gt;&gt;</a></small>Web前端
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 20, 8, '')}"
					var="article">
					<li><span class="pull-right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-30${urlSuffix}"
					class="pull-right">更多&gt;&gt;</a></small>数据库
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 30, 8, '')}"
					var="article">
					<li><span class="pull-right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-40${urlSuffix}"
					class="pull-right">更多&gt;&gt;</a></small>操作系统
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 40, 8, '')}"
					var="article">
					<li><span class="pull-right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-50${urlSuffix}"
					class="pull-right">更多&gt;&gt;</a></small>Windchill
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 50, 8, '')}"
					var="article">
					<li><span class="pull-right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
	</div>
</body>
</html>